from apps.hello.models import Hello, Essay
from rest_framework import serializers


class HelloSerializer(serializers.ModelSerializer):
    """吾志序列化器"""

    class Meta:
        model = Hello
        fields = '__all__'


class EssaySerializer(serializers.ModelSerializer):
    """文章序列化器"""

    class Meta:
        model = Essay
        fields = '__all__'
